<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<ui:composition xmlns="http://www.w3.org/1999/xhtml"
		xmlns:cc="http://java.sun.com/jsf/composite"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:p="http://primefaces.org/ui">

		<cc:interface>

			<cc:attribute name="titulo" required="true" />
			<cc:attribute name="autor" required="true" />
			<cc:attribute name="data" required="true" />
			<cc:attribute name="texto" required="true" />

		</cc:interface>

		<cc:implementation>

			<h:panelGroup layout="block" styleClass="noticiaItem">
			
				<h:panelGrid columns="1">
				
					<h:panelGroup styleClass="noticiaTitulo">
						<h:outputText value="#{cc.attrs.titulo}" />
					</h:panelGroup>
	
					<h:panelGroup styleClass="noticiaAutorData">
						<h:outputText value="Por #{cc.attrs.autor}, em " />
						<h:outputText value="#{cc.attrs.data}">
							<f:convertDateTime pattern="dd/MM/yyyy" />
						</h:outputText>					
					</h:panelGroup>
	
					<h:panelGroup styleClass="noticiaTexto">
						<h:outputText value="#{cc.attrs.texto}">
							<f:converter converterId="converter.StringTruncateConverter" />
							<f:attribute name="truncateLimit" value="140" />						
						</h:outputText>
					</h:panelGroup>
				
				</h:panelGrid>
			
			</h:panelGroup>

		</cc:implementation>

</ui:composition>